Object.defineProperty(exports, "__esModule", {
    value: !0
}), exports.default = void 0;

var appData = getApp().globalData, _default = Behavior({
    data: {
        siteStyle: "transform: translateX(50%);"
    },
    methods: {
        setSiteStyle: function() {
            var t = appData.systemInfo.windowWidth;
            if (!(370 <= t || t <= 340)) try {
                if ("function" == typeof wx.getMenuButtonBoundingClientRect) {
                    var e = wx.getMenuButtonBoundingClientRect();
                    this.setData({
                        siteStyle: "right: ".concat(t - e.right + 5 + e.width, "px")
                    });
                }
            } catch (t) {
                console.log(t);
            }
        }
    }
});

exports.default = _default;